﻿using System;


namespace ObserverPattern
{
    internal class HexaObserver : ObServer
    {
        public HexaObserver(Subject subject)
        {
            this.subject = subject;
            subject.Attach(this);
        }
        public override void Update()
        {
            Console.WriteLine("Hex:" + Convert.ToString(subject.GetState(),16));
        }
    }
}
